package com.igeek.print;

public class TeacherInfo extends Info{

    public TeacherInfo() {
    }

    public TeacherInfo(String name, int age, String professional) {
        this.name = name;
        this.age = age;
        this.professional = professional;
    }

    private String name;

    private int age;

    private String professional;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getProfessional() {
        return professional;
    }

    public void setProfessional(String professional) {
        this.professional = professional;
    }

    @Override
    public void showInfo() {
        System.out.println("展示老师的信息：\n教师名称："+name+"\t专业："+professional);

    }
}
